class CreateQuantities < ActiveRecord::Migration
  def self.up
    create_table :quantities do |t|
      t.integer   :tea_id
      t.string    :stu_type
      t.integer   :numbers
      t.timestamps
    end
    execute "alter table quantities
               add constraint fk_quantity_teachers
               foreign key  (tea_id) references teachers(id)"
  end

  def self.down
    drop_table :quantities
  end
end
